﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="Configuracion.aspx.cs" Inherits="Web.forms.Configuracion" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="PanelUsuarios" runat="server" CssClass="pnlPrincipal">
        <table width="624" cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td width="261" class="celdaTitulo">
                    <asp:Label ID="Label1" runat="server" CssClass="titForm">Administración / Configuración</asp:Label>
                </td>
                <td width="363" class="celdaTitulo" height="34">
                    <asp:Image ID="Banner" runat="server" ImageUrl="~/IMG/Banner.jpg" />
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <table width="95%">
                        <tr>
                            <td colspan="4" style="height: 3px;">
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="lblTitClave" runat="server" CssClass="lbl" Text="Clave" />
                            </td>
                            <td align="left" colspan="2">
                                <asp:Label ID="lblClave" Visible="false" runat="server" Text="-999" />
                                <asp:TextBox ID="txtNombre" runat="server" Width="240px" MaxLength="50" TabIndex="0" />
                            </td>
                            <td align="center" valign="top" rowspan="7">
                                <asp:Button ID="btnGrabar" runat="server" CssClass="save" OnClick="btnGrabar_Click"
                                    ToolTip="Grabar" />&nbsp;
                                <asp:Button ID="btnNuevo" runat="server" CssClass="new" OnClick="btnNuevo_Click"
                                    ToolTip="Nuevo Usuario" />
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <asp:Label ID="lblTitValor" runat="server" CssClass="lbl" Text="Valor" />
                            </td>
                            <td align="left" colspan="2">
                                <asp:TextBox ID="txtValor" runat="server" Width="300px" TabIndex="1" MaxLength="256" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" style="height: 3px;">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <div style="width: 100%; overflow: auto; height: 200px;">
                                    <asp:GridView ID="grvConfiguracion" runat="server" AutoGenerateColumns="False" BorderColor="#E0040B"
                                        BorderStyle="Ridge" Width="100%" OnSelectedIndexChanged="grvConfiguracion_SelectedIndexChanged"
                                        Style="margin-top: 0px" EnableModelValidation="True"
                                        OnRowDataBound="grvConfiguracion_RowDataBound">
                                        <AlternatingRowStyle BackColor="silver" />
                                        <HeaderStyle BackColor="#343434" ForeColor="White" />
                                        <Columns>
                                            <asp:TemplateField FooterText="Clave" HeaderText="Clave">
                                                <ItemTemplate>
                                                    <asp:Label ID="grvConfiguracion_lblClave" runat="server" CssClass="lbl" Visible="false" Text='<%# Bind("Clave") %>' />
                                                    <asp:Label ID="grvConfiguracion_lblNombre" runat="server" CssClass="lbl" Text='<%# Bind("Nombre") %>' />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField FooterText="Valor" HeaderText="Valor">
                                                <ItemTemplate>
                                                    <asp:Label ID="grvConfiguracion_lblValor" runat="server" CssClass="lbl" Text='<%# Bind("Valor") %>' />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField FooterText="Acción" HeaderText="Acción">
                                                <ItemTemplate>
                                                    <asp:ImageButton ID="Btn_Edit" runat="server" ImageUrl="~/img/edit.gif" AlternateText="Editar" CommandName="Select" ToolTip="Modificar" />
<%--                                                    <asp:ImageButton ID="Btn_Delete" runat="server" ImageUrl="~/img/delete.gif" AlternateText="Eliminar" CommandName="Eliminar" ToolTip="Eliminar" CommandArgument='<%# Bind("Clave") %>' />
--%>                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" />
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <asp:Label ID="lblEstado" runat="server" Visible="false" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
